QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Managing Styles

QuickDraw 3D provides general routines for operating with style objects.

Q3Style_GetType

You can use the Q3Style_GetType function to get the type of a style object.

TQ3ObjectType Q3Style_GetType (TQ3StyleObject style);
style
A style object.

DESCRIPTION

The Q3Style_GetType function returns, as it s function result, the type of the style object specified by the style parameter. The types of style objects currently supported by QuickDraw 3D are defined by these constants:

kQ3StyleTypeBackfacing
kQ3StyleTypeFill
kQ3StyleTypeHighlight
kQ3StyleTypeInterpolation
kQ3StyleTypeOrientation
kQ3StyleTypePickID
kQ3StyleTypePickParts
kQ3StyleTypeReceiveShadows
kQ3StyleTypeSubdivision

If the specified style object is invalid or is not one of these types, Q3Style_GetType returns the value kQ3ObjectTypeInvalid .

Q3Style_Submit

You can use the Q3Style_Submit function to submit a style in retained mode.

TQ3Status Q3Style_Submit (
                     TQ3StyleObject style,
                     TQ3ViewObject view);
style
A style object.
view
A view.

DESCRIPTION

The Q3Style_Submit function submits the style specified by the style parameter to the view specified by the view parameter.

SPECIAL CONSIDERATIONS

You should call Q3Style_Submit only in a submitting loop.


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |